﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Abs.Core.DAL.EntityFramework;
using Abs.Core.Models.Blog;

namespace Abs.Core.DAL.SetUpDatabase
{
    internal partial class AbsInitializer
    {
        internal void InitializeStatus(AbsContext absContext)
        {
            var statuses = new List<Status>
                           {
                               new Status {Title = StatusEnum.Pending.ToString()},
                               new Status {Title = StatusEnum.Approved.ToString()}
                           };
            statuses.ForEach(status => absContext.Statuses.Add(status));
            absContext.SaveChanges();
        }//end of internal void InitializeStatus(AbsContext absContext)
    }//end of internal partial class AbsInitializer
}//end of namespace ABS.DAL.SetUpDatabase